home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / workspace.660 < prev    next >
Text File  |  1992-02-06  |  1KB  |  41 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw11040
  3. \paperh9800
  4. \margl120
  5. \margr1000
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 running shell scripts from the 2.0 Workspace\
  8. \
  9. Q:  When I double-click on a shell script in the 2.0 Workspace, a shell window appears, but then immediately displays a “
  10. \fc0 [process terminated]” message.  My script never executes.  It worked fine under 1.0 — what's wrong?\
  11. \
  12. A:  There's a good chance that your shell script expects to be executed by 
  13. \f1\fs24 csh
  14. \f0\fs28 .  When you double-clicked on a shell script in the 1.0 Workspace, it invoked the 
  15. \f1\fs24 Terminal
  16. \f0\fs28  application which would use whatever shell you specified as part of your 
  17. \f1\fs24 UNIX
  18. \f0\fs28  login information to execute your script.  In 2.0, the Workspace invokes one of its lightweight shells and uses 
  19. \f1\fs24 exec
  20. \f0\fs28  to execute your shell script.  
  21. \f1\fs24 exec
  22. \f0\fs28  won't invoke 
  23. \f1\fs24 csh
  24. \f0\fs28  by default, so you need to do this explicitly by making the following the first line of the shell script file:\
  25. \
  26.  
  27. \f1\fs24     #! /bin/csh -f\
  28.  
  29. \f0\fs28 \
  30. Please refer to NeXTanswer 
  31. \f1\fs24 shell.448
  32. \f0\fs28  for more information on 
  33. \f1\fs24 csh
  34. \f0\fs28  and shell scripts.\
  35. \
  36. Verified for 2.0\
  37. \
  38. QA660\
  39. \
  40.  
  41.